package com.szlok;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class Map {
    public static void main(String[] args) {
        List<HashMap> students = new ArrayList<>();
        HashMap<String,String> students1 = new HashMap<>();
        HashMap<String,String> students2 = new HashMap<>();

        students1.put("name","张三");
        students1.put("age","20");
        students1.put("sex","女");
        students.add(students1);

        students2.put("name","李四");
        students2.put("age","21");
        students2.put("sex","女");
        students.add(students2);

        System.out.println(students);
    }
}
